home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Event / h / EventDefs < prev   
Text File  |  1995-07-09  |  2KB  |  72 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    EventDefs.h
  12.     Author:  Copyright © 1992 Jason Williams
  13.     Version: 1.00 (13 Mar 1992)
  14.     Purpose: High-level WIMP event dispatch to a hierarchy of user event
  15.              handling functions - internal structure definitions
  16. */
  17.  
  18.  
  19. #ifndef __dl_eventdefs_h
  20. #define __dl_eventdefs_h
  21.  
  22. #ifndef __dl_core_h
  23. #include "DeskLib:Core.h"
  24. #endif
  25.  
  26. #ifndef __dl_linklist_h
  27. #include "DeskLib:LinkList.h"
  28. #endif
  29.  
  30. #ifndef __dl_wimp_h
  31. #include "DeskLib:Wimp.h"
  32. #endif
  33.  
  34. #ifndef __dl_event_h
  35. #include "DeskLib:Event.h"
  36. #endif
  37.  
  38.  
  39. #define event_MAXEVENTS 20
  40.  
  41.  
  42. typedef struct
  43. {
  44.   linklist_header header;
  45.   event_type      eventtype;
  46.   event_handler   handler;
  47.   void            *reference;
  48. } event_claimrecord;
  49.  
  50. typedef char event_class;
  51. #define  nonexistent   0
  52. #define  iconrelated   1
  53. #define  windowrelated 2
  54. #define  notrelated    3
  55.  
  56. typedef struct
  57. {
  58.   linklist_header header;
  59.   icon_handle     icon;
  60.   linklist_header claimlist;
  61. } event_iconrecord;
  62.  
  63. typedef struct
  64. {
  65.   linklist_header header;
  66.   window_handle   window;
  67.   linklist_header iconlist;
  68.   linklist_header claimlist;
  69. } event_windowrecord;
  70.  
  71. #endif
  72.